<ion-view hide-nav-bar="true" title="发动态">
    <ion-header-bar class="bar bar-header" >
        <a href="javascript:history.back(-1)" class="button button-icon icon ion-ios-arrow-back" nav-direction="back" style="color: #ff9461;"></a>
        <a class="button" ng-click="prepareDynamic()" style="background: #ff9461;color: #ffffff;">发表</a>
    </ion-header-bar>
    <ion-content>
        <div class="padding">
            <div style="padding-bottom: 10px;border-bottom: 1px solid #cccccc;">
                <textarea style="width: 100%;line-height: 24px;" placeholder="在这里呼入少于50个字的标题..." ng-model="vm.dynamic.title"
                          rows="1" ng-trim="false" maxlength="50" ng-Required="true" name="title"></textarea>
            </div>
            <div style="padding: 20px 0px;">
                <textarea style="width: 100%;line-height: 24px;" placeholder="分享你和孩子的新鲜事儿...." ng-model="vm.dynamic.content"
                          rows="15" ng-trim="false" maxlength="2000" ng-Required="true" name="description"></textarea>
            </div>
            <div class="dynamic-create-img">
                <!--<div class="img-box" ng-hide="myCheck">-->
                    <!--<img src="http://www.hxpeng.com/041DFD58D85D31A478B881F1EBE4ECA9_2017-04-25/ZaEtKglLh8sKyWO_hqQREQa4Gy5yqEkaUKY3dFDgFm1zU-huYMLd7cCVjS2Hw2og.jpg" name="ZaEtKglLh8sKyWO_hqQREQa4Gy5yqEkaUKY3dFDgFm1zU-huYMLd7cCVjS2Hw2og">-->
                    <!--<button class="button button-icon ion-close-circled item-body-remove-btn"></button><br/>-->
                    <!--<textarea style="width: 100%;padding: 5px;" placeholder="输入照片描述...." rows="2" ng-trim="false" maxlength="2000">-->
                        <!--测试测试测试测试-->
                    <!--</textarea>-->
                <!--</div>-->
                <dynamic-upload-pic ng-repeat="per in vm.imgUrl track by $index"></dynamic-upload-pic>
            </div>
        </div>
        <div id="resultHtml"></div>
    </ion-content>
    <ion-footer-bar class="bar bar-footer" style="background: rgba(167, 164, 164, 0.16);">
        <div class="buttons">
            <button style="color: #a0a0a0;" ng-click="chooseImg()" class="button button-icon ion-image"></button>
        </div>
    </ion-footer-bar>
</ion-view>